using System;

namespace SqlSugarLearing.Model
{
    public class BaseModel
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        /// <value></value>
        [SqlSugar.SugarColumn(IsPrimaryKey = true)]
        public virtual int id { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        /// <value></value>
        public virtual int? creater { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <value></value>
        public virtual DateTime? createTime { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        /// <value></value>
        public virtual int? updater { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        /// <value></value>
        public virtual DateTime? updateTime { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        /// <value></value>
        public virtual DateTime? deleteTime { get; set; }

        public BaseModel UpdateTime()
        {
            this.updateTime = DateTime.Now;
            return this;
        }
    }
}